<?php echo $html->script('jquery-1.4.2.min.js') ?>
<?php echo $html->script('date.js') ?>
<?php echo $html->script('jquery.datePicker.js') ?>
<?php echo $html->script('dibai.js') ?>
<?php echo $html->css('datePicker.css')?>
<div class="left">
<?php echo $this->Form->create('Job');?>
<div class="titles"><?php __('创建新职位'); ?></div>
	<table id="settings">
	    <tr><td>职位名称：</td></tr>
		<tr><td><?php echo $this->Form->text('name',array('class'=>'full-width')); ?></td></tr>
	    <tr><td>职位描述：</td></tr>
	    <tr><td><?php echo $this->Form->textarea('description'); ?></td></tr>
	    <?php echo $this->Form->hidden('user_id',array('value'=>$cuid));?>
	    <tr><td>职位地区：</td></tr><tr><td>
	    	
	        <select name="province_select" id="province_select" size="1">
	        <?php foreach ($provinces as $province): ?>
	            <option value="<?php echo $province['Province']['id'] ?>"><?php echo $province['Province']['name'] ?></option>
	        <?php endforeach ?>
	        </select>
	        <select name="city_select" id="city_select" onchange="" size="1">
	            <option value="option1">选择城市</option>
	        </select>
	        <?php echo $this->Form->hidden('city_id') ?></td></tr>
	    <tr><td>截止日期：</td></tr><tr><td>
	    	

	    	<?php echo $this->Form->text('ends',array('class'=>'date-pick')); ?></td></tr>

		<tr><td>职位语言：</td></tr><tr><td><?php echo $this->Form->select('language_id', $languages, null, array('empty'=>'选择职位语言')) ?></td></tr>
	    <tr><td>职位类别：</td></tr><tr><td><?php echo $this->Form->select('job_type_id', $job_types,null,array('empty'=>'选择职位类别')) ?></td></tr>
	    <tr><td>职位类型：</td></tr><tr><td><?php echo $this->Form->select('employ_type_id', $employ_types,null,array('empty'=>'选择职位类型')) ?></td></tr>
	    	</table>
	<span class="sub-titles">联系信息：</span>
		<table id="settings">    
		<tr><td class="name">招聘方名称：</td><td ><?php echo $form->text('holder',array('class'=>'full-width')) ?></td></tr>
	    <tr><td class="name">联系地址：</td><td><?php echo $form->text('address',array('class'=>'full-width')) ?></td></tr>
		<tr><td class="name">电子邮件：</td><td><?php echo $form->text('email') ?></td></tr>
			<tr><td class="name">固定电话：</td><td><?php echo $form->text('phone') ?></td></tr>
		<tr style="border-buttom:1px solid #ccc"><td class="name">移动电话：</td><td><?php echo $form->text('mobile') ?></td></tr>
	    <tr><td></td></tr><tr><td><?php echo $this->Form->end("创建",true) ?></td></tr>
	</table>
</div>
<div class="right">
	<h3><?php __('Actions'); ?></h3>
	<ul>

		<li><?php echo $this->Html->link(__('List Jobs', true), array('action' => 'index'));?></li>
		<li><?php echo $this->Html->link(__('List Users', true), array('controller' => 'users', 'action' => 'index')); ?> </li>
		<li><?php echo $this->Html->link(__('New User', true), array('controller' => 'users', 'action' => 'add')); ?> </li>
	</ul>
</div>